package cn.bb.dao;

import cn.bb.pojo.Person;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.util.List;
//继承HibernateDaoSupport类
public class IPersonDaoImpl extends HibernateDaoSupport implements IPersonDao {
    @Override
    public List<Person> search() {
        return getHibernateTemplate().find("from Person");
    }
}
